package haiyangwangwork.day05.homework.ex1;

public abstract class Player {
    public abstract void run();
}

class Swimmer extends Player implements Iswimming{

    @Override
    public void run() {
        System.out.println("游泳运动员可以跑");
    }

    @Override
    public void swim() {
        System.out.println("游泳运动员可以游泳");
    }
}
class Shooter extends Player implements Ishooting{

    @Override
    public void run() {
        System.out.println("射击运动员可以跑");
    }

    @Override
    public void shoot() {
        System.out.println("射击运动员可以射击");
    }
}
class Rider extends Player implements Iriding{

    @Override
    public void run() {
        System.out.println("自行车运动员可以跑");
    }

    @Override
    public void ride() {
        System.out.println("自行车运动员可以骑车");
    }
}
class Ironman extends Player implements Iswimming,Iriding,Ishooting{

    @Override
    public void run() {
        System.out.println("铁人三项运动员可以跑");
    }

    @Override
    public void ride() {
        System.out.println("铁人三项运动员可以骑车");
    }

    @Override
    public void swim() {
        System.out.println("铁人三项运动员可以游泳");
    }

    @Override
    public void shoot() {
        System.out.println("铁人三项运动员可以射击");
    }
}
class Diver extends Player implements Iswimming,Idiving{

    @Override
    public void run() {
        System.out.println("跳水运动员可以跑");
    }

    @Override
    public void dive() {
        System.out.println("跳水运动员可以跳水");
    }

    @Override
    public void swim() {
        System.out.println("跳水运动员可以游泳");
    }
}